package com.xlh.pojo.course;

import java.io.Serializable;
import java.util.Date;

public class ResourceAuthority implements Serializable {
    /**
     * 资源权限id
     *
     * @mbg.generated
     */
    private Long id;

    /**
     * 用户id
     *
     * @mbg.generated
     */
    private Long userId;

    /**
     * 资源类型 5：教学资源 6：其他资源 8：实验手册
     *
     * @mbg.generated
     */
    private Integer resourceType;

    /**
     * 操作类型 1：对课程限制 2：对章节限制
     *
     * @mbg.generated
     */
    private Integer operatingType;

    /**
     * 操作id
     *
     * @mbg.generated
     */
    private Long objId;

    /**
     * 是否展示 0：不展示 1：展示
     *
     * @mbg.generated
     */
    private Boolean showed;

    /**
     * 是否被下载 0：禁止下载 1：允许下载
     *
     * @mbg.generated
     */
    private Boolean downloaded;

    /**
     * 备注 如果operating_type=2时，存放资源系统名称
     *
     * @mbg.generated
     */
    private String remark;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 更新时间
     *
     * @mbg.generated
     */
    private Date updateTime;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getResourceType() {
        return resourceType;
    }

    public void setResourceType(Integer resourceType) {
        this.resourceType = resourceType;
    }

    public Integer getOperatingType() {
        return operatingType;
    }

    public void setOperatingType(Integer operatingType) {
        this.operatingType = operatingType;
    }

    public Long getObjId() {
        return objId;
    }

    public void setObjId(Long objId) {
        this.objId = objId;
    }

    public Boolean getShowed() {
        return showed;
    }

    public void setShowed(Boolean showed) {
        this.showed = showed;
    }

    public Boolean getDownloaded() {
        return downloaded;
    }

    public void setDownloaded(Boolean downloaded) {
        this.downloaded = downloaded;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", resourceType=").append(resourceType);
        sb.append(", operatingType=").append(operatingType);
        sb.append(", objId=").append(objId);
        sb.append(", showed=").append(showed);
        sb.append(", downloaded=").append(downloaded);
        sb.append(", remark=").append(remark);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}